import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'
import permissionType from "@/utils/permissionType";

const PRODUCT: AppRouteRecordRaw = {
  path: '/tongji',
  name: 'tongji',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '统计报表',
    requiresAuth: false,
    icon: 'icon-menu',
    order: 2,
  },
  children: [
    {
      path: 'jindu',
      name: 'tongjiJinDu',
      component: () => import('@/views/tongji/jindu/jindu.vue'),
      meta: {
        locale: '生成进度一览',
        requiresAuth: true,
        roles: [permissionType.pingTaiLogin],
      },
    },
    {
      path: 'producting',
      name: 'tongjiProducting',
      component: () => import('@/views/tongji/jindu/producting.vue'),
      meta: {
        locale: '在制产品一览',
        requiresAuth: true,
        roles: [permissionType.pingTaiLogin],
      },
    }
  ],
}
export  default  PRODUCT
